package com.shimao.celnet.payment.model.response;

/**
 * 应用系统级别的错误码
 * Created by ensure.xu on 2017/11/24.
 */
public enum ErrorInfoEnum implements ErrorInfoInterface {
    SUCCESS("0000", "处理成功"),
    FAIL("2001", "处理失败[%s]"),
    NOT_FOUND("-100", "未知错误"),
    NOT_PARAMS("1001", "缺少必须参数[%s]"),
    PARAMS_TYPE_ERROR("1002", "参数类型错误[%s]"),
    CONTENT_TYPE_ERROR("1003", "不支持的请求方式"),
    DATA_TYPE_ERROR("1004", "请求数据格式错误"),
    SYSTEM_ERROR("1005", "系统处理失败"),
    NO_APP_PERMISSION ("1006", "没有该应用权限"),
    NO_INTERFACE_PERMISSION("1007", "没有该接口的权限"),
    NO_INTERFACE_KEY("1008", "无效的接口编号"),
    NO_IAPP_KEY("1009", "无效的应用编号"),
    EINTERFACE_DIS_ENABLE("1010", "该接口未启用"),
    ERROR_TIMESTAMP("1011", "非法请求时间戳"),
    ERROR_SIGN("1012", "签名验证错误"),
    ERROR_PARAMS("1013", "参数[%s]值错误"),
    FAIL_OPEN("1014", "开票失败[%s]"),
    FAIL_REFUND("1015", "退款失败[%s]"),
    FAIL_INVILD("1016", "作废失败[%s]"),
    FAIL_QUERY("1017", "查询发票失败[%s]"),
    RETURN_DATA_TYPE_ERROR("1018", "返回数据格式错误"),
    PAY_DATA_TYPE("2000","交易处理中") ,
    PAY_RESULT_TYPE("1019","交易结果[%s]");



    private String errorCode;

    private String errorMessage;

    ErrorInfoEnum(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;

    }

    public String getErrorCode(){
        return this.errorCode;
    }

    public String getErrorMessage(){
        return this.errorMessage;
    }
}